package com.briup.pts.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class IssueRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    private Boolean forUpdate;

    public IssueRecordExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    public void setForUpdate(Boolean forUpdate) {
        this.forUpdate = forUpdate;
    }

    public Boolean getForUpdate() {
        return forUpdate;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIsrIdIsNull() {
            addCriterion("isr_id is null");
            return (Criteria) this;
        }

        public Criteria andIsrIdIsNotNull() {
            addCriterion("isr_id is not null");
            return (Criteria) this;
        }

        public Criteria andIsrIdEqualTo(Integer value) {
            addCriterion("isr_id =", value, "isrId");
            return (Criteria) this;
        }

        public Criteria andIsrIdNotEqualTo(Integer value) {
            addCriterion("isr_id <>", value, "isrId");
            return (Criteria) this;
        }

        public Criteria andIsrIdGreaterThan(Integer value) {
            addCriterion("isr_id >", value, "isrId");
            return (Criteria) this;
        }

        public Criteria andIsrIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("isr_id >=", value, "isrId");
            return (Criteria) this;
        }

        public Criteria andIsrIdLessThan(Integer value) {
            addCriterion("isr_id <", value, "isrId");
            return (Criteria) this;
        }

        public Criteria andIsrIdLessThanOrEqualTo(Integer value) {
            addCriterion("isr_id <=", value, "isrId");
            return (Criteria) this;
        }

        public Criteria andIsrIdIn(List<Integer> values) {
            addCriterion("isr_id in", values, "isrId");
            return (Criteria) this;
        }

        public Criteria andIsrIdNotIn(List<Integer> values) {
            addCriterion("isr_id not in", values, "isrId");
            return (Criteria) this;
        }

        public Criteria andIsrIdBetween(Integer value1, Integer value2) {
            addCriterion("isr_id between", value1, value2, "isrId");
            return (Criteria) this;
        }

        public Criteria andIsrIdNotBetween(Integer value1, Integer value2) {
            addCriterion("isr_id not between", value1, value2, "isrId");
            return (Criteria) this;
        }

        public Criteria andIsrTimeIsNull() {
            addCriterion("isr_time is null");
            return (Criteria) this;
        }

        public Criteria andIsrTimeIsNotNull() {
            addCriterion("isr_time is not null");
            return (Criteria) this;
        }

        public Criteria andIsrTimeEqualTo(Date value) {
            addCriterion("isr_time =", value, "isrTime");
            return (Criteria) this;
        }

        public Criteria andIsrTimeNotEqualTo(Date value) {
            addCriterion("isr_time <>", value, "isrTime");
            return (Criteria) this;
        }

        public Criteria andIsrTimeGreaterThan(Date value) {
            addCriterion("isr_time >", value, "isrTime");
            return (Criteria) this;
        }

        public Criteria andIsrTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("isr_time >=", value, "isrTime");
            return (Criteria) this;
        }

        public Criteria andIsrTimeLessThan(Date value) {
            addCriterion("isr_time <", value, "isrTime");
            return (Criteria) this;
        }

        public Criteria andIsrTimeLessThanOrEqualTo(Date value) {
            addCriterion("isr_time <=", value, "isrTime");
            return (Criteria) this;
        }

        public Criteria andIsrTimeIn(List<Date> values) {
            addCriterion("isr_time in", values, "isrTime");
            return (Criteria) this;
        }

        public Criteria andIsrTimeNotIn(List<Date> values) {
            addCriterion("isr_time not in", values, "isrTime");
            return (Criteria) this;
        }

        public Criteria andIsrTimeBetween(Date value1, Date value2) {
            addCriterion("isr_time between", value1, value2, "isrTime");
            return (Criteria) this;
        }

        public Criteria andIsrTimeNotBetween(Date value1, Date value2) {
            addCriterion("isr_time not between", value1, value2, "isrTime");
            return (Criteria) this;
        }

        public Criteria andIsrNumIsNull() {
            addCriterion("isr_num is null");
            return (Criteria) this;
        }

        public Criteria andIsrNumIsNotNull() {
            addCriterion("isr_num is not null");
            return (Criteria) this;
        }

        public Criteria andIsrNumEqualTo(Integer value) {
            addCriterion("isr_num =", value, "isrNum");
            return (Criteria) this;
        }

        public Criteria andIsrNumNotEqualTo(Integer value) {
            addCriterion("isr_num <>", value, "isrNum");
            return (Criteria) this;
        }

        public Criteria andIsrNumGreaterThan(Integer value) {
            addCriterion("isr_num >", value, "isrNum");
            return (Criteria) this;
        }

        public Criteria andIsrNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("isr_num >=", value, "isrNum");
            return (Criteria) this;
        }

        public Criteria andIsrNumLessThan(Integer value) {
            addCriterion("isr_num <", value, "isrNum");
            return (Criteria) this;
        }

        public Criteria andIsrNumLessThanOrEqualTo(Integer value) {
            addCriterion("isr_num <=", value, "isrNum");
            return (Criteria) this;
        }

        public Criteria andIsrNumIn(List<Integer> values) {
            addCriterion("isr_num in", values, "isrNum");
            return (Criteria) this;
        }

        public Criteria andIsrNumNotIn(List<Integer> values) {
            addCriterion("isr_num not in", values, "isrNum");
            return (Criteria) this;
        }

        public Criteria andIsrNumBetween(Integer value1, Integer value2) {
            addCriterion("isr_num between", value1, value2, "isrNum");
            return (Criteria) this;
        }

        public Criteria andIsrNumNotBetween(Integer value1, Integer value2) {
            addCriterion("isr_num not between", value1, value2, "isrNum");
            return (Criteria) this;
        }

        public Criteria andIsrPriceIsNull() {
            addCriterion("isr_price is null");
            return (Criteria) this;
        }

        public Criteria andIsrPriceIsNotNull() {
            addCriterion("isr_price is not null");
            return (Criteria) this;
        }

        public Criteria andIsrPriceEqualTo(Double value) {
            addCriterion("isr_price =", value, "isrPrice");
            return (Criteria) this;
        }

        public Criteria andIsrPriceNotEqualTo(Double value) {
            addCriterion("isr_price <>", value, "isrPrice");
            return (Criteria) this;
        }

        public Criteria andIsrPriceGreaterThan(Double value) {
            addCriterion("isr_price >", value, "isrPrice");
            return (Criteria) this;
        }

        public Criteria andIsrPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("isr_price >=", value, "isrPrice");
            return (Criteria) this;
        }

        public Criteria andIsrPriceLessThan(Double value) {
            addCriterion("isr_price <", value, "isrPrice");
            return (Criteria) this;
        }

        public Criteria andIsrPriceLessThanOrEqualTo(Double value) {
            addCriterion("isr_price <=", value, "isrPrice");
            return (Criteria) this;
        }

        public Criteria andIsrPriceIn(List<Double> values) {
            addCriterion("isr_price in", values, "isrPrice");
            return (Criteria) this;
        }

        public Criteria andIsrPriceNotIn(List<Double> values) {
            addCriterion("isr_price not in", values, "isrPrice");
            return (Criteria) this;
        }

        public Criteria andIsrPriceBetween(Double value1, Double value2) {
            addCriterion("isr_price between", value1, value2, "isrPrice");
            return (Criteria) this;
        }

        public Criteria andIsrPriceNotBetween(Double value1, Double value2) {
            addCriterion("isr_price not between", value1, value2, "isrPrice");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverIsNull() {
            addCriterion("isr_deliver is null");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverIsNotNull() {
            addCriterion("isr_deliver is not null");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverEqualTo(Date value) {
            addCriterion("isr_deliver =", value, "isrDeliver");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverNotEqualTo(Date value) {
            addCriterion("isr_deliver <>", value, "isrDeliver");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverGreaterThan(Date value) {
            addCriterion("isr_deliver >", value, "isrDeliver");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverGreaterThanOrEqualTo(Date value) {
            addCriterion("isr_deliver >=", value, "isrDeliver");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverLessThan(Date value) {
            addCriterion("isr_deliver <", value, "isrDeliver");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverLessThanOrEqualTo(Date value) {
            addCriterion("isr_deliver <=", value, "isrDeliver");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverIn(List<Date> values) {
            addCriterion("isr_deliver in", values, "isrDeliver");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverNotIn(List<Date> values) {
            addCriterion("isr_deliver not in", values, "isrDeliver");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverBetween(Date value1, Date value2) {
            addCriterion("isr_deliver between", value1, value2, "isrDeliver");
            return (Criteria) this;
        }

        public Criteria andIsrDeliverNotBetween(Date value1, Date value2) {
            addCriterion("isr_deliver not between", value1, value2, "isrDeliver");
            return (Criteria) this;
        }

        public Criteria andIsrStatusIsNull() {
            addCriterion("isr_status is null");
            return (Criteria) this;
        }

        public Criteria andIsrStatusIsNotNull() {
            addCriterion("isr_status is not null");
            return (Criteria) this;
        }

        public Criteria andIsrStatusEqualTo(String value) {
            addCriterion("isr_status =", value, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrStatusNotEqualTo(String value) {
            addCriterion("isr_status <>", value, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrStatusGreaterThan(String value) {
            addCriterion("isr_status >", value, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrStatusGreaterThanOrEqualTo(String value) {
            addCriterion("isr_status >=", value, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrStatusLessThan(String value) {
            addCriterion("isr_status <", value, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrStatusLessThanOrEqualTo(String value) {
            addCriterion("isr_status <=", value, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrStatusLike(String value) {
            addCriterion("isr_status like", value, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrStatusNotLike(String value) {
            addCriterion("isr_status not like", value, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrStatusIn(List<String> values) {
            addCriterion("isr_status in", values, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrStatusNotIn(List<String> values) {
            addCriterion("isr_status not in", values, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrStatusBetween(String value1, String value2) {
            addCriterion("isr_status between", value1, value2, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrStatusNotBetween(String value1, String value2) {
            addCriterion("isr_status not between", value1, value2, "isrStatus");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdIsNull() {
            addCriterion("isr_customer_id is null");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdIsNotNull() {
            addCriterion("isr_customer_id is not null");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdEqualTo(Integer value) {
            addCriterion("isr_customer_id =", value, "isrCustomerId");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdNotEqualTo(Integer value) {
            addCriterion("isr_customer_id <>", value, "isrCustomerId");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdGreaterThan(Integer value) {
            addCriterion("isr_customer_id >", value, "isrCustomerId");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("isr_customer_id >=", value, "isrCustomerId");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdLessThan(Integer value) {
            addCriterion("isr_customer_id <", value, "isrCustomerId");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdLessThanOrEqualTo(Integer value) {
            addCriterion("isr_customer_id <=", value, "isrCustomerId");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdIn(List<Integer> values) {
            addCriterion("isr_customer_id in", values, "isrCustomerId");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdNotIn(List<Integer> values) {
            addCriterion("isr_customer_id not in", values, "isrCustomerId");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdBetween(Integer value1, Integer value2) {
            addCriterion("isr_customer_id between", value1, value2, "isrCustomerId");
            return (Criteria) this;
        }

        public Criteria andIsrCustomerIdNotBetween(Integer value1, Integer value2) {
            addCriterion("isr_customer_id not between", value1, value2, "isrCustomerId");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}